<?php /*
	
*/ ?>
<?php include("inc/head.inc.php") ;?>
<body>
<table width="824" border="0" cellpadding="0" cellspacing="0"  align="center">
  <tr>
    <td class="headerclass"><?php include(INC."top.inc.php") ?></td>
  </tr>
  <tr>
    <td valign="top" class="maincontainer"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr><td valign="top"class="leftmenuback"><?php include(INC."left.inc.php") ?></td>
        <td valign="top">
		<table width="100%" border="0" cellpadding="0" cellspacing="1" class="proborder">
	  <tr>
        <td height="23" colspan="3" class="head" width="576px;">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
			
		   <td style="width:1px;"></td>
		   <td height="22" bgcolor="#000000" class="style1" style="padding-left:14px;">
		    Product Images </td>
		   <td style="width:1px;"></td>
		   </tr>
          </table></td>
      </tr>
      <tr>
        <td colspan="3"><table width="10%" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td height="21" align="center"><a href="#" class="ab" onClick="history.go(-1);"><img src="images/back.gif" border="0" /></a></td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td width="5%">&nbsp;</td>
        <td width="18%">
			<?php 
				$sql="select * from tblproducts where intprodid='$productid'";
				$respr=$n02586916_db->select($sql);
				if(count($respr)>0)
				{ ?>	
			<img src="images/product/<?php echo $respr[0]['intproddefaultimg'];?>" name="imgmain"/>
			<?php } ?>
		</td>
		<td width="77%" align="left"><?php
			 if(isset($_REQUEST['proid']) && ($_REQUEST['proid'])!="")
			 {
			 	$productid=$_REQUEST['proid'];
				$sql = "SELECT * FROM `tblproimages` where intprodid='$productid'"; 
				$res=$n02586916_db->select($sql);
				if(count($res)>0) {
					 for($i=0;$i<count($res);$i++) {
					?><img src="images/Catalog/th/<?php echo $res[$i]['varthpath'];?>" onClick="document.images.imgmain.src='images/Catalog/big/<?php echo $res[$i]['varbigpath'];?>'" style="cursor:hand;"/>&nbsp;
					<?php }  
		  		} else {
			   ?>
			   <span class="msg">No More Images for this product</span>
			   <?php 
		   		}
	  		 }?>
		</td>
      </tr>
    </table>
       </td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td><?php include "inc/bottom.inc.php"; ?></td>
  </tr>
</table>
</body>
</html>
